using System;
using System.Collections.Generic;
using System.Text;
using Shc.Sql;
using Shc.Json;
namespace Slqj.Data
{
	public static class TableViewHotelInfo
	{
		public const string Table = "View_HotelInfo";
		public const string HotelInfoID = "HotelInfoID";
		public const string ProvinceID = "ProvinceID";
		public const string CityID = "CityID";
		public const string HotelStatusID = "HotelStatusID";
		public const string ApproveStatusID = "ApproveStatusID";
		public const string HotelName = "HotelName";
		public const string Address = "Address";
		public const string Introduction = "Introduction";
		public const string ImageUrl = "ImageUrl";
		public const string SiteUrl = "SiteUrl";
		public const string TelePhone = "TelePhone";
		public const string Fax = "Fax";
		public const string Description = "Description";
		public const string Sort = "Sort";
		public const string Creater = "Creater";
		public const string CreatedBy = "CreatedBy";
		public const string Created = "Created";
		public const string Modified = "Modified";
		public const string ModifiedBy = "ModifiedBy";
		public const string ModifiedByID = "ModifiedByID";
		public const string IsTransfer = "IsTransfer";
		public const string AccountNo = "AccountNo";
		public const string AccountName = "AccountName";
		public const string CityName = "CityName";
		public const string ProvinceName = "ProvinceName";
		public const string ApproveStatusName = "ApproveStatusName";
	}
	
	[Serializable]
	public class BaseViewHotelInfo
		: IDbSessionEntity, IJsonClass
	{
		int m_HotelInfoID;
		/// <summary>
        /// 
        /// </summary>
        public int HotelInfoID
        {
            get { return m_HotelInfoID; }
            set { m_HotelInfoID = value; }
        }
		
		int? m_ProvinceID;
		/// <summary>
        /// 
        /// </summary>
        public int? ProvinceID
        {
            get { return m_ProvinceID; }
            set { m_ProvinceID = value; }
        }
		
		int? m_CityID;
		/// <summary>
        /// 
        /// </summary>
        public int? CityID
        {
            get { return m_CityID; }
            set { m_CityID = value; }
        }
		
		int m_HotelStatusID;
		/// <summary>
        /// 
        /// </summary>
        public int HotelStatusID
        {
            get { return m_HotelStatusID; }
            set { m_HotelStatusID = value; }
        }
		
		int m_ApproveStatusID;
		/// <summary>
        /// 
        /// </summary>
        public int ApproveStatusID
        {
            get { return m_ApproveStatusID; }
            set { m_ApproveStatusID = value; }
        }
		
		string m_HotelName;
		/// <summary>
        /// 
        /// </summary>
        public string HotelName
        {
            get { return m_HotelName; }
            set { m_HotelName = value; }
        }
		
		string m_Address;
		/// <summary>
        /// 
        /// </summary>
        public string Address
        {
            get { return m_Address; }
            set { m_Address = value; }
        }
		
		string m_Introduction;
		/// <summary>
        /// 
        /// </summary>
        public string Introduction
        {
            get { return m_Introduction; }
            set { m_Introduction = value; }
        }
		
		string m_ImageUrl;
		/// <summary>
        /// 
        /// </summary>
        public string ImageUrl
        {
            get { return m_ImageUrl; }
            set { m_ImageUrl = value; }
        }
		
		string m_SiteUrl;
		/// <summary>
        /// 
        /// </summary>
        public string SiteUrl
        {
            get { return m_SiteUrl; }
            set { m_SiteUrl = value; }
        }
		
		string m_TelePhone;
		/// <summary>
        /// 
        /// </summary>
        public string TelePhone
        {
            get { return m_TelePhone; }
            set { m_TelePhone = value; }
        }
		
		string m_Fax;
		/// <summary>
        /// 
        /// </summary>
        public string Fax
        {
            get { return m_Fax; }
            set { m_Fax = value; }
        }
		
		string m_Description;
		/// <summary>
        /// 
        /// </summary>
        public string Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }
		
		int m_Sort;
		/// <summary>
        /// 
        /// </summary>
        public int Sort
        {
            get { return m_Sort; }
            set { m_Sort = value; }
        }
		
		int m_Creater;
		/// <summary>
        /// 
        /// </summary>
        public int Creater
        {
            get { return m_Creater; }
            set { m_Creater = value; }
        }
		
		string m_CreatedBy;
		/// <summary>
        /// 
        /// </summary>
        public string CreatedBy
        {
            get { return m_CreatedBy; }
            set { m_CreatedBy = value; }
        }
		
		DateTime m_Created;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Created
        {
            get { return m_Created; }
            set { m_Created = value; }
        }
		
		DateTime m_Modified;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Modified
        {
            get { return m_Modified; }
            set { m_Modified = value; }
        }
		
		string m_ModifiedBy;
		/// <summary>
        /// 
        /// </summary>
        public string ModifiedBy
        {
            get { return m_ModifiedBy; }
            set { m_ModifiedBy = value; }
        }
		
		int? m_ModifiedByID;
		/// <summary>
        /// 
        /// </summary>
        public int? ModifiedByID
        {
            get { return m_ModifiedByID; }
            set { m_ModifiedByID = value; }
        }
		
		bool m_IsTransfer;
		/// <summary>
        /// 
        /// </summary>
        public bool IsTransfer
        {
            get { return m_IsTransfer; }
            set { m_IsTransfer = value; }
        }
		
		string m_AccountNo;
		/// <summary>
        /// 
        /// </summary>
        public string AccountNo
        {
            get { return m_AccountNo; }
            set { m_AccountNo = value; }
        }
		
		string m_AccountName;
		/// <summary>
        /// 
        /// </summary>
        public string AccountName
        {
            get { return m_AccountName; }
            set { m_AccountName = value; }
        }
		
		string m_CityName;
		/// <summary>
        /// 
        /// </summary>
        public string CityName
        {
            get { return m_CityName; }
            set { m_CityName = value; }
        }
		
		string m_ProvinceName;
		/// <summary>
        /// 
        /// </summary>
        public string ProvinceName
        {
            get { return m_ProvinceName; }
            set { m_ProvinceName = value; }
        }
		
		string m_ApproveStatusName;
		/// <summary>
        /// 
        /// </summary>
        public string ApproveStatusName
        {
            get { return m_ApproveStatusName; }
            set { m_ApproveStatusName = value; }
        }
		
		
		#region IDbSessionEntity Members
		public void ReadDBData(RowDataReader reader)
        {
            m_HotelInfoID = reader[TableViewHotelInfo.HotelInfoID];
            m_ProvinceID = reader[TableViewHotelInfo.ProvinceID];
            m_CityID = reader[TableViewHotelInfo.CityID];
            m_HotelStatusID = reader[TableViewHotelInfo.HotelStatusID];
            m_ApproveStatusID = reader[TableViewHotelInfo.ApproveStatusID];
            m_HotelName = reader[TableViewHotelInfo.HotelName];
            m_Address = reader[TableViewHotelInfo.Address];
            m_Introduction = reader[TableViewHotelInfo.Introduction];
            m_ImageUrl = reader[TableViewHotelInfo.ImageUrl];
            m_SiteUrl = reader[TableViewHotelInfo.SiteUrl];
            m_TelePhone = reader[TableViewHotelInfo.TelePhone];
            m_Fax = reader[TableViewHotelInfo.Fax];
            m_Description = reader[TableViewHotelInfo.Description];
            m_Sort = reader[TableViewHotelInfo.Sort];
            m_Creater = reader[TableViewHotelInfo.Creater];
            m_CreatedBy = reader[TableViewHotelInfo.CreatedBy];
            m_Created = reader[TableViewHotelInfo.Created];
            m_Modified = reader[TableViewHotelInfo.Modified];
            m_ModifiedBy = reader[TableViewHotelInfo.ModifiedBy];
            m_ModifiedByID = reader[TableViewHotelInfo.ModifiedByID];
            m_IsTransfer = reader[TableViewHotelInfo.IsTransfer];
            m_AccountNo = reader[TableViewHotelInfo.AccountNo];
            m_AccountName = reader[TableViewHotelInfo.AccountName];
            m_CityName = reader[TableViewHotelInfo.CityName];
            m_ProvinceName = reader[TableViewHotelInfo.ProvinceName];
            m_ApproveStatusName = reader[TableViewHotelInfo.ApproveStatusName];
        }
		
		public void WriteDBData(RowDataWriter writer)
        {
        }

        public void SetIdentityAfterInsert(DBObject idd)
        {
        }
		
		public string TableName
        {
            get { return TableViewHotelInfo.Table; }
        }
		#endregion
		
		
		#region IJsonClass Members

        public void JsonDeSerializeObj(JsonHashTable hashToRead)
        {
             m_HotelInfoID = hashToRead["HotelInfoID"];
			 
             m_ProvinceID = hashToRead["ProvinceID"];
			 
             m_CityID = hashToRead["CityID"];
			 
             m_HotelStatusID = hashToRead["HotelStatusID"];
			 
             m_ApproveStatusID = hashToRead["ApproveStatusID"];
			 
             m_HotelName = hashToRead["HotelName"];
			 
             m_Address = hashToRead["Address"];
			 
             m_Introduction = hashToRead["Introduction"];
			 
             m_ImageUrl = hashToRead["ImageUrl"];
			 
             m_SiteUrl = hashToRead["SiteUrl"];
			 
             m_TelePhone = hashToRead["TelePhone"];
			 
             m_Fax = hashToRead["Fax"];
			 
             m_Description = hashToRead["Description"];
			 
             m_Sort = hashToRead["Sort"];
			 
             m_Creater = hashToRead["Creater"];
			 
             m_CreatedBy = hashToRead["CreatedBy"];
			 
             m_Created = hashToRead["Created"];
			 
             m_Modified = hashToRead["Modified"];
			 
             m_ModifiedBy = hashToRead["ModifiedBy"];
			 
             m_ModifiedByID = hashToRead["ModifiedByID"];
			 
             m_IsTransfer = hashToRead["IsTransfer"];
			 
             m_AccountNo = hashToRead["AccountNo"];
			 
             m_AccountName = hashToRead["AccountName"];
			 
             m_CityName = hashToRead["CityName"];
			 
             m_ProvinceName = hashToRead["ProvinceName"];
			 
             m_ApproveStatusName = hashToRead["ApproveStatusName"];
			 
        }

        public void JsonSerializeObj(JsonHashTable hashToFill)
        {
            hashToFill["HotelInfoID"] = HotelInfoID;
			
            hashToFill["ProvinceID"] = ProvinceID;
			
            hashToFill["CityID"] = CityID;
			
            hashToFill["HotelStatusID"] = HotelStatusID;
			
            hashToFill["ApproveStatusID"] = ApproveStatusID;
			
            hashToFill["HotelName"] = HotelName;
			
            hashToFill["Address"] = Address;
			
            hashToFill["Introduction"] = Introduction;
			
            hashToFill["ImageUrl"] = ImageUrl;
			
            hashToFill["SiteUrl"] = SiteUrl;
			
            hashToFill["TelePhone"] = TelePhone;
			
            hashToFill["Fax"] = Fax;
			
            hashToFill["Description"] = Description;
			
            hashToFill["Sort"] = Sort;
			
            hashToFill["Creater"] = Creater;
			
            hashToFill["CreatedBy"] = CreatedBy;
			
            hashToFill["Created"] = Created;
			
            hashToFill["Modified"] = Modified;
			
            hashToFill["ModifiedBy"] = ModifiedBy;
			
            hashToFill["ModifiedByID"] = ModifiedByID;
			
            hashToFill["IsTransfer"] = IsTransfer;
			
            hashToFill["AccountNo"] = AccountNo;
			
            hashToFill["AccountName"] = AccountName;
			
            hashToFill["CityName"] = CityName;
			
            hashToFill["ProvinceName"] = ProvinceName;
			
            hashToFill["ApproveStatusName"] = ApproveStatusName;
			
        }

        #endregion
		
	}
}
